package com.jingdianjichi.auth.common.enums;

import lombok.Getter;

/**
 * 删除状态枚举
 */
@Getter
public enum IsDeletedFlageEnum {
    DELETE(1,"已删除"),
    UN_DELETE(0,"未删除");

    public int code;
    public String desc;
    IsDeletedFlageEnum(int code ,String desc){
        this.code = code;
        this.desc = desc;
    }
    public static  ResultCodeEnum getByCode(int codeVal){
        for (ResultCodeEnum resultCodeEnum: ResultCodeEnum.values()){
            if (resultCodeEnum.code == codeVal){
                return resultCodeEnum;
            }
        }
        return  null;
    }
}
